﻿using System;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("Reconnection")]
    public class Reconnection
    {
        [Key]
        public long ReconnectionID { get; set; }
        [ForeignKey("User")]
        public string ReaderID { get; set; }
        [ForeignKey("Kardex")]
        public int KardexID { get; set; }
        public DateTime SystemDate { get; set; }
        public double CurrentMeasurerRead { get; set; }
        public double PreviousMeasurerRead { get; set; }
        public int State { get; set; } // 0: nuevo, 1: editado, 2: cobrado

        public virtual Kardex Kardex { get; set; }
        public virtual User User { get; set; }
    }
}
